/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Akanksha;
import javax.swing.JOptionPane;
import java.awt.Toolkit;
/**
 *
 * @author Akanksha Chauhan
 */
public class Alarm {
    private String alarmMessage;
    
    public void setAlarm(String message){
        this.alarmMessage = message;
        // Pops up the warning message box
        JOptionPane.showMessageDialog(null,alarmMessage, "WARNING !!!!!!" , JOptionPane.WARNING_MESSAGE);
        // Makes a beep sound when warning appears
        Toolkit.getDefaultToolkit().beep();  
        
    }
    
}
